/***************************************************************************
 *   Copyright (C) 2009 by wutongyu   *
 *
 ***************************************************************************/

#include <vector>
#include "Bill.h"

Bill::Bill(){
}

Bill::Bill(const Bill &b){
  earnedMoney = b.earnedMoney;
  endTime = b.endTime;
  startTime = b.startTime;
  workerID = b.workerID;
  workerName = b.workerName;
  totalWorkTime = b.totalWorkTime;
  
  soldItems = b.soldItems;
}

Bill& Bill::operator =(const Bill &b){
  earnedMoney = b.earnedMoney;
  endTime = b.endTime;
  startTime = b.startTime;
  workerID = b.workerID;
  workerName = b.workerName;
  totalWorkTime = b.totalWorkTime;
  
  soldItems = b.soldItems;
  
  return *this;
}